package com.framework.admin.model;

import com.framework.common.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table
@EqualsAndHashCode(callSuper = true)
public class SysDict extends BaseModel {
	private static final long serialVersionUID = 1L;

	/**
	 * 代码
	 */
	@Column(columnDefinition = "varchar(32) default '' COMMENT '代码'")
	private String code;

	/**
	 * 父级字典
	 */
	@Column(columnDefinition = "varchar(32) default '' COMMENT '父级字典'")
	private String pcode;

	/**
	 * 名称
	 */
	@Column(columnDefinition = "varchar(50) default '' COMMENT '名称'")
	private String name;

	/**
	 * 备注
	 */
	@Column(columnDefinition = "varchar(50) default '' COMMENT '备注'")
	private String remark;


	/**
	 * 排序
	 */
	@Column(columnDefinition = "int(2) default 0 COMMENT '排序'")
	private Integer sort;
}